<template>
  <div v-if="true" class="tag-item" :style="style">{{info}}</div>
</template>
<script>
import conf from './conf'
export default {
  props: {
    info: {
      type: String
    }
  },
  data: () => ({
    style: null
  }),
  created() {
    this.computeStyle()
  },
  methods: {
    computeStyle() {
      this.style = conf(this.info)
    }
  }
}
</script>
<style lang="less">
.tag-item {
  font-size: 10px;
  line-height: 16px;
  padding: 1px 4px 0;
  border-radius: 2px;
  margin-right: 5px;
  background: rgba(156, 165, 181, 0.15);
  color: #40516f;
  white-space: nowrap;
  &:nth-child(4) {
    margin-right: 0;
  }
}
</style>
